home *** CD-ROM | disk | FTP | other *** search
/ Softwarová Záchrana 3 / Softwarova-zachrana-3.bin / Xteq X-Setup / xqdcXSP-Setup-EN.exe / {app} / plugins / XQ WinNT Service Interactive.xpl < prev    next >
Text File  |  2002-01-04  |  2KB  |  55 lines

  1. "FILE"="Xteq Systems X-Setup Plugin 6.0"
  2. "TYPE"="6"
  3. "COUNT"="1"
  4. "UIPATH 1"="System\Security\Services"
  5. "NAME"="Interactive Service"
  6. "VERSION"="1.03"
  7. "OSVERSION"="0101011"
  8. "WARNING"="1"
  9. "LANGUAGE"="VBScript"
  10. "TEXT 1"="Enable services running as LocalSystem to be interactive"
  11. "DESCRIPTION 1"="By default, all services that are run under the LocalSystem account can also have the flag "Allow interact with Desktop"."
  12. "DESCRIPTION 2"="This is a good feature for a lot of services, on high-security systems however it might be necessary to disallow any services to interact with the current loged on user."
  13. "DESCRIPTION 3"="By disabling this feature, *NO* service is allowed to interact with the desktop even if the flag "Allow interact with Desktop" is set."
  14. "AUTHOR"="Xteq Systems"
  15. "CONTACTURL"="http://www.xteq.com"
  16. "COPYRIGHT"="Copyright ⌐ Xteq Systems - All Rights Reserved"
  17. "COMMENT 1"="from MSDN -> CreateService()"
  18. "COMMENT 2"=" "
  19.  
  20.  
  21.  
  22.  
  23. sV1="HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Windows\NoInteractiveServices" 'DW <> 0 -> no interactive
  24. Sub Plugin_Initialize 
  25.  Call SetUIElement(1,true)
  26.  
  27.  If RegValueExists(sV1) then
  28.     i=RegReadValue(sV1)
  29.     if i<>0 then 
  30.        Call SetUIElement(1,false)
  31.     end if
  32.  end if
  33. End Sub
  34.  
  35. Sub Plugin_CheckData(ElementIndex)
  36. End Sub
  37.  
  38. Sub Plugin_Apply(ElementIndex,ElementSubIndex)
  39.  b=GetUIElement(1)
  40.  if b=true then
  41.     If RegValueExists(sV1) then
  42.        Call RegDeleteValue(sV1)
  43.     end if
  44.  else
  45.     Call RegWriteValue(sV1,1,2)
  46.  end if
  47.  
  48. End Sub
  49.  
  50. Sub Plugin_Terminate 
  51. End Sub
  52.  
  53.  
  54.  
  55.